<? $page_title='库存明细' ?>
<?include "FASHION/page_header.phtml"?>
<div id="printArea">
<table class="ptop" border="0" cellpadding="4" cellspacing="0" width="100%">
         <thead>
            <tr class="nobg">
                <th colspan="4"><h2><?$print_com_name?></h2></th>
            </tr>
            <tr class="nobg">
                <th colspan="4"><h1><?$page_title?></h1></th>
            </tr>
        </thead>        
    </table>
<table border=0 class="list pcontent" width="100%">
    <thead>
    <tr class="nobg">
		<th rowspan="2">编号</th>
		<th rowspan="2">材料名称</th>
		<th rowspan="2">品牌</th>
		<th rowspan="2">规格</th>
		<th rowspan="2">单位</th>
		<th colspan="3">入库</th>
		<th colspan="3">出库</th>
		<th colspan="3">结存</th>
		<th rowspan="2">备注</th>
	</tr>
	<tr>
		<th>数量</th>
		<th>单价</th>
		<th>金额</th>
		<th>数量</th>
		<th>单价</th>
		<th>金额</th>
		<th>数量</th>
		<th>单价</th>
		<th>金额</th>
	</tr>
     </thead>
<tbody>
<{if $list}>
<{foreach item=ware from=$list}>
	<tr>
		<td><{$ware.sno}>&nbsp;</td>
		<td style="word-break:break-all;"><{$ware.name}>&nbsp;</td>
		<td style="word-break:break-all;"><{$ware.brand}></td>
		<td style="word-break:break-all;"><{$ware.specific}></td>
		<td><{$ware.unit}></td>
	<{if $ware.class=='in'}>
		<td><{$ware.amount}></td>
		<td><{= number_format($ware.price,2)}></td>
		<td><{= number_format($ware.price*$ware.amount,2)}></td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
	<{else}>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td><{$ware.amount}></td>
		<td><{= number_format($ware.price,2)}></td>
		<td><{= number_format($ware.price*$ware.amount,2)}></td>
	<{/if}>
		<td><{$ware.bl_amount}></td>
		<td><{= number_format($ware.bl_price,2)}></td>
		<td><{= number_format($ware.bl_total,2)}></td>
		<td class="text"><{$ware.remark}></td>
	</tr>
<{/foreach}>
<{/if}>
</tbody>
</table>
</div>
<?include "FASHION/page_footer.phtml"?>
